package com.huike.clues.mapper;


import com.huike.clues.domain.TbClueTrackRecord;
import com.huike.clues.domain.vo.ClueTrackRecordVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 线索跟进记录Mapper接口
 * @date 2021-04-19
 */
public interface TbClueTrackRecordMapper {

    @Insert("insert into tb_clue_track_record (clue_id ,subject,record,next_time,level,type,false_reason,create_by) " +
            "value (#{clueId},#{subject},#{record},#{nextTime},#{level},#{type},#{falseReason},#{createBy})")
    void add(ClueTrackRecordVo clueTrackRecordVo);

   @Select("select * from tb_clue_track_record where clue_id=#{clueId}")
    List<ClueTrackRecordVo> list(Long clueId);

    void insert(TbClueTrackRecord trackRecord);

}
